home *** CD-ROM | disk | FTP | other *** search
- PXFSETPGID(3F) Last changed: 1-22-99
-
-
- NNAAMMEE
- PPXXFFSSEETTPPGGIIDD - Set process group ID
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFSSEETTPPGGIIDD ((_i_p_i_d,, _i_p_g_i_d,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _i_p_i_d,, _i_p_g_i_d,, _i_e_r_r_o_r
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- F77 compiler.
-
- The PPXXFFSSEETTPPGGIIDD routine uses the sseettppggiidd(2) system call to change the
- process group ID of the process with a process ID of _i_p_i_d. The
- process group ID may be for an existing process group or a new process
- group which will be created. Upon sucessful completion, the process
- with a process ID of _i_p_i_d will have its process group ID set to _i_p_g_i_d.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this routine:
-
- _i_p_i_d An input integer variable that contains the process ID of
- the process to change the process group ID. As a special
- case, if _i_p_i_d is zero the process ID of the calling process
- is used.
-
- _i_p_g_i_d An input integer variable containing the new process group
- ID.
-
- _i_e_r_r_o_r An output integer variable that contains zero if PPXXFFSSEETTPPGGIIDD
- was successful or nonzero if PPXXFFSSEETTPPGGIIDD was not successful.
-
- PPXXFFSSEETTPPGGIIDD may return any of the following error values:
-
- EEAACCCCEESS If the value of _i_p_i_d matches the process ID of a child
- process of the calling process and the child process has
- successfully executed one of the PPXXFFEEXXEECC(3F) functions.
-
- EEIINNVVAALL If the value of _i_p_g_i_d is less than 0 or is not a value
- supported by the implementation.
-
- EEPPEERRMM If the process indicated by _i_p_i_d is a session leader; if the
- value of _i_p_i_d is valid but matches the process ID of a child
- process of the calling process and the child process is not
- in the same session as the calling process; or if the value
- of _i_p_g_i_d does not match the process ID of the process
- indicated by pid and no process with a process group ID
- exists that matches the value of _i_p_g_i_d in the same session
- as the calling process.
-
- EESSRRCCHH If the value of _i_p_i_d does not match the ID of the calling
- process or of a child of the calling process.
-
- EEXXAAMMPPLLEESS
- program pxftest
- integer ipid, ierror
-
- CALL PXFGETPID(ipid, ierror)
- if (ierror .ne. 0) then
- print *,'FAILED: PXFGETPID call with error = ',ierror
- else
- CALL PXFSETPGID(ipid, ipid, ierror)
- if (ierror .eq. 0) then
- print *,'PASSED: PXFSETPGID normal test'
- else
- print *,'FAILED: PXFSETPGID normal test with error = ',ierror
- endif
- endif
- end
-
- SSEEEE AALLSSOO
- sseettppggiidd(2)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-